package cn.school.test.grade;

import cn.school.dao.GradeMapper;
import cn.school.entity.Grade;
import cn.school.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;
import java.util.Map;

public class SelectNiubi {
    public static void main(String[] args) {
        SqlSession session = MybatisUtil.get(false);
        GradeMapper mapper = session.getMapper(GradeMapper.class);
        List<Map> list = mapper.queryNiub("s_subject",new String[]{"*"});
        list.forEach(x->{
            System.out.println(x);
        });
        MybatisUtil.closeSession(session);
    }
}
